home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / slasy2.z / slasy2
Encoding:
Text File  |  2002-10-03  |  4.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. SSSSLLLLAAAASSSSYYYY2222((((3333SSSS))))                                                          SSSSLLLLAAAASSSSYYYY2222((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SLASY2 - solve for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in  op(TL)*X +
  10.      ISGN*X*op(TR) = SCALE*B,
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE SLASY2( LTRANL, LTRANR, ISGN, N1, N2, TL, LDTL, TR, LDTR, B,
  14.                         LDB, SCALE, X, LDX, XNORM, INFO )
  15.  
  16.          LOGICAL        LTRANL, LTRANR
  17.  
  18.          INTEGER        INFO, ISGN, LDB, LDTL, LDTR, LDX, N1, N2
  19.  
  20.          REAL           SCALE, XNORM
  21.  
  22.          REAL           B( LDB, * ), TL( LDTL, * ), TR( LDTR, * ), X( LDX, * )
  23.  
  24. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  25.      These routines are part of the SCSL Scientific Library and can be loaded
  26.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  27.      directs the linker to use the multi-processor version of the library.
  28.  
  29.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  30.      4 bytes (32 bits). Another version of SCSL is available in which integers
  31.      are 8 bytes (64 bits).  This version allows the user access to larger
  32.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  33.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  34.      only one of the two versions; 4-byte integer and 8-byte integer library
  35.      calls cannot be mixed.
  36.  
  37. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  38.      SLASY2 solves for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in op(TL)*X +
  39.      ISGN*X*op(TR) = SCALE*B, where TL is N1 by N1, TR is N2 by N2, B is N1 by
  40.      N2, and ISGN = 1 or -1.  op(T) = T or T', where T' denotes the transpose
  41.      of T.
  42.  
  43.  
  44. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  45.      LTRANL  (input) LOGICAL
  46.              On entry, LTRANL specifies the op(TL):  = .FALSE., op(TL) = TL, =
  47.              .TRUE., op(TL) = TL'.
  48.  
  49.      LTRANR  (input) LOGICAL
  50.              On entry, LTRANR specifies the op(TR):  = .FALSE., op(TR) = TR, =
  51.              .TRUE., op(TR) = TR'.
  52.  
  53.      ISGN    (input) INTEGER
  54.              On entry, ISGN specifies the sign of the equation as described
  55.              before. ISGN may only be 1 or -1.
  56.  
  57.      N1      (input) INTEGER
  58.              On entry, N1 specifies the order of matrix TL.  N1 may only be 0,
  59.              1 or 2.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSLLLLAAAASSSSYYYY2222((((3333SSSS))))                                                          SSSSLLLLAAAASSSSYYYY2222((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N2      (input) INTEGER
  75.              On entry, N2 specifies the order of matrix TR.  N2 may only be 0,
  76.              1 or 2.
  77.  
  78.      TL      (input) REAL array, dimension (LDTL,2)
  79.              On entry, TL contains an N1 by N1 matrix.
  80.  
  81.      LDTL    (input) INTEGER
  82.              The leading dimension of the matrix TL. LDTL >= max(1,N1).
  83.  
  84.      TR      (input) REAL array, dimension (LDTR,2)
  85.              On entry, TR contains an N2 by N2 matrix.
  86.  
  87.      LDTR    (input) INTEGER
  88.              The leading dimension of the matrix TR. LDTR >= max(1,N2).
  89.  
  90.      B       (input) REAL array, dimension (LDB,2)
  91.              On entry, the N1 by N2 matrix B contains the right-hand side of
  92.              the equation.
  93.  
  94.      LDB     (input) INTEGER
  95.              The leading dimension of the matrix B. LDB >= max(1,N1).
  96.  
  97.      SCALE   (output) REAL
  98.              On exit, SCALE contains the scale factor. SCALE is chosen less
  99.              than or equal to 1 to prevent the solution overflowing.
  100.  
  101.      X       (output) REAL array, dimension (LDX,2)
  102.              On exit, X contains the N1 by N2 solution.
  103.  
  104.      LDX     (input) INTEGER
  105.              The leading dimension of the matrix X. LDX >= max(1,N1).
  106.  
  107.      XNORM   (output) REAL
  108.              On exit, XNORM is the infinity-norm of the solution.
  109.  
  110.      INFO    (output) INTEGER
  111.              On exit, INFO is set to 0: successful exit.
  112.              1: TL and TR have too close eigenvalues, so TL or TR is perturbed
  113.              to get a nonsingular equation.  NOTE: In the interests of speed,
  114.              this routine does not check the inputs for errors.
  115.  
  116. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  117.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  118.  
  119.      This man page is available only online.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.